<html>
  <body>
    <h1>Hello, world!</h1>
    <script language="Javascript">
      function my_function(arg0, arg1) {
        return "42";
      }
      document.print(my_function());
    </script>
  </body>
</html>